#include<bits/stdc++.h>
#include<cstdio>
using namespace std;

int n,a,b[100010],c[100010],t[100010],maxn=-1,cnt=0,ans=0;

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a;
        b[a]++;
        maxn=max(maxn,a);
    }
    for(int i=1;i<=maxn;i++){
        if(b[i]!=0){
           cnt++;
           c[cnt]=i;
           t[i]=b[i];
        }
    }
    for(int i=1;i<=cnt;i++){
        for(int j=1;j<i;j++){
            if(b[c[j]]>0 && t[c[i]]>0){
                if(b[c[j]]>=t[c[i]]){
                    b[c[j]]-=t[c[i]];
                    t[c[i]]=0;
                    break;
                }
                else if(b[c[j]]<t[c[i]]){
                    t[c[i]]-=b[c[j]];
                    b[c[j]]=0;
                }
            }
        }
    }
    for(int i=1;i<=cnt;i++){
        ans+=b[c[i]];
    }
    cout<<ans;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
